import instance from './request'

// 获取验证码
export const login = (url, parm) => instance.post(url, parm)

export const register = (url, parm) => instance.post(url, parm)

export const getSchoolInfoList = (url) => instance.post(url)

export const getClassInfoList = (url, schoolId) => instance.post(url, {schoolId: schoolId})

export const updateUserInfo = (url, parm) => instance.post(url, parm)

export const getStudentList = (parm) => instance.post('student/getStudnetInfo/bySchoolAndClass', parm)

export const getStudentListByCondition = (parm) => instance.post('student/getStudnetInfo/byCondition', parm)

export const countStudent = (parm) => instance.post('student/count', parm)

export const getClassLineOption = (parm) => instance.post('classScore/line', parm)

export const getBarAndPieOption = (parm) => instance.post('/classScore/barAndPie', parm)

export const getStudentLineOption = (parm) => instance.post('/studentScore/line', parm)

export const getStudentBarAndPieOption = (parm) => instance.post('/studentScore/barAndPie', parm)

export const getStudentIdAndNameList = (parm) => instance.post('/studentScore/getStudentIdAndNameList', parm)

export const conditionCountStudent = (parm) => instance.post('student/conditionCount', parm)

export const uploadImageFile = (parm) => instance.post('/file/uploadimage', parm)

export const uploadVideo = (parm) => instance.post('/file/uploadVideo', parm)
